<?php
$name=$_POST['name'];
$gender=$_POST['gender'];
$point=$_POST['point'];
if($name==''){
	echo '请填写姓名';
}else if($gender=='0'){
	echo '请选择性别';
}else if($point==''){
	echo '请输入分数';
}else{
$conn=mysql_connect('127.0.0.1:3306','betty','123qwe');
mysql_query("SET NAMES 'utf8'",$conn);
mysql_select_db('betty',$conn);
$sql="SELECT * FROM `scord` WHERE 1=1 ";
$resource=mysql_query($sql,$conn);
while($row=mysql_fetch_array($resource,MYSQL_ASSOC)){
	print_r($row);
}
}
?>
<a href='2.html'>返回</a>

